/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package paperlessflat.helper;

import java.util.Hashtable;

/**
 *
 * @author thunder2002
 */
public class PathHelper {
    private static Hashtable<String, String> cache = new Hashtable<String, String>();
    
    public static String getUserHomePath() {
        if (!cache.contains("user.home"))
            cache.put("user.home", System.getProperty("user.home") + getFileSeparator());
        
        return cache.get("user.home");
    }
    public static String getFileSeparator() {
        if (!cache.contains("file.separator"))
            cache.put("file.separator", System.getProperty("file.separator"));
        
        return cache.get("file.separator");
    }
    
    private PathHelper() {        
    }
}
